package com.springclouddemo.eurekaclientconsumerfeinconfiguraton.feign;

import com.springclouddemo.eurekaclientconsumerfeinconfiguraton.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 何昌杰
 */
@Component
@FeignClient(name = "eureka-client-provider",configuration = FeignConfiguration.class)
public interface ProviderFeign {
    @RequestMapping(value = "/hello/{name}",method = RequestMethod.GET)
    String demo1(@PathVariable("name") String name);
}
